package com.frejoys.common.vo.order;

import com.frejoys.common.enums.EStoreActivityType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author wangzhicheng
 * @version 1.0
 * @date 2024/5/2 11:42
 */
@Data
public class StoreActivityQueueVo {
    // 订单支付金额
    @Schema(type = "BigDecimal", name = "price", description = "订单支付金额")
    private BigDecimal price;

    // 活动类型(店铺活动得到)：1排队返利
    @Schema(type = "Integer", name = "type", description = "活动类型(店铺活动得到)：1排队返利")
    private Integer type;

    @Schema(type = "String", name = "activityName", description = "活动名称")
    private String activityName;

    // 创建时间
    @Schema(type = "Integer", name = "createTime", description = "创建时间")
    private Integer createTime;

    // 状态：0无效(转积分)，1有效，2已返利
    @Schema(type = "Integer", name = "status", description = "状态：0无效(转积分)，1有效，2已返利")
    private Integer status;

    public String getActivityName() {
        if (type != null) {
            return EStoreActivityType.getValueByKey(type);
        }
        return "";
    }

}
